let _this = null

function options(vm) {
  _this = vm
  return [
    [
      {
        title: '活动名称',
        key: 'acName',
        col: 12,
        text: { tooltip: false }
      },
      {
        title: '活动标题',
        key: 'titleTag',
        col: 12,
        text: { tooltip: false }
      }
    ],
    [
      {
        title: '活动时间',
        col: 12,
        text: { tooltip: true },
        data: {
          from: (info) => {
            return `${info.startDate}-${info.endDate}`
          }
        }
      },
      {
        title: '活动浏览量(PV)',
        key: 'viewCount',
        col: 12,
        text: { tooltip: true },
        data: {
          from: (info) => {
            return `${info.viewCount}次`
          }
        }
      }
    ],
    [
      {
        title: '访客数(UV)',
        key: 'totalCustomer',
        col: 12,
        text: { tooltip: true },
        data: {
          from: (info) => {
            return `${info.totalCustomer}人`
          }
        }
      },
      {
        title: '累计中奖数',
        key: 'prizes',
        col: 12,
        text: { tooltip: false },
        data: {
          from: (info) => {
            return `${info.prizes}次`
          }
        }
      }
    ],
    [
      {
        title: '今日中奖数',
        key: 'todayPrizes',
        col: 12,
        text: { tooltip: false },
        data: {
          from: (info) => {
            return `${info.todayPrizes}次`
          }
        }
      },
      {
        title: '剩余奖品数',
        key: 'remainingPrize',
        col: 12,
        text: { tooltip: false },
        data: {
          from: (info) => {
            return `${info.remainingPrize}个`
          }
        }
      }
    ]
  ]
}

export default {
  options
}
